import { get, post, post_json } from '@/http/axios'
import moment from 'moment'
export default {
    namespaced:true,
    state: {
        //员工全部订单数据
        EmployeeData: []
    },
    mutations: {
        SET_EMPLOYEEDATA(state, res) {
            state.EmployeeData = res.data.data.list;
        }
    },
    actions: {
        async getEmployeeData({ commit }, payload) {
            let res =await get('/order/pageQuery', payload);
            commit('SET_EMPLOYEEDATA', res);
        }
    }
}